﻿@model IEnumerable<SoftHotel.Models.DetalleReservaHab>

@{
    ViewBag.Title = "Index";
    
}



<h2></h2>


<table  width="100%" rules="all" border="1" style="border-color: Black; width: 900px; margin-bottom: 0px;">
    <tr align="center">
        
        <th>
           Número Item
        </th>
        <th>
             Ambiente
        </th>
        <th>
            Precio Unitario
        </th>
        <th>
            Cantidad
        </th>

        <th>
            Total
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr align="center">
         <td>
            @Html.DisplayFor(modelItem => item.numeroItem)
        </td>

        <td>
            @Html.DisplayFor(modelItem => item.idAmbiente)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.precioUnitario)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.cantidad)
        </td>

        <td>
            @Html.DisplayFor(modelItem => item.total)
        </td>
        <td>
          

            <div  style="float:left">
            @using (Html.BeginForm("EditarDetalle", "ReservaHab", new { id = item.idDetalleReserva }, FormMethod.Get))
            {  <input type="image"  alt="0" title="Editar"  src="/Content/Images/edit.jpg" />
            }
        </div>
          <div  style="float:left">
            @using (Html.BeginForm("BorrarDetalle", "ReservaHab", new { id = item.idDetalleReserva }, FormMethod.Get))
            {  <input type="image"  alt="0" title="Eliminar" src="/Content/Images/delete.jpg" />
            }
        </div>

        </td>
    </tr>
}

</table>
